﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WxLib.Core.Cache;

namespace WxLib.Core.RequestHandlers
{
    /// <summary>
    /// 启用缓存的请求处理程序的接口
    /// </summary>
    public interface ICachedRequestHandler : IRequestHandler
    {
        /// <summary>
        /// 获取或设置此请求处理程序使用的缓存
        /// </summary>
        IWxLibCache Cache { get; set; }

        /// <summary>
        /// 获取或设置缓存级别。
        /// </summary>
        /// <value>缓存级别.</value>
        CacheLevel CacheLevel { get; set; }
    }
}
